package com.beta.mapper;

import com.baomidou.mybatisplus.mapper.AutoMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.beta.dto.Shipment.ShipmentsDetailDto;
import com.beta.dto.Shipment.ShipmentsDto;
import com.beta.entity.Shipments;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Shipments 表数据库控制层接口
 */
public interface ShipmentsMapper extends AutoMapper<Shipments> {

     List<ShipmentsDto> getShipmentsByStatus(Page<ShipmentsDto> page,
                                             @Param("courierId") Integer courierId,
                                             @Param("status") String status);

     ShipmentsDetailDto getShipmentsOrderItem(Integer shipmentsId);

    List<Shipments> getShipments(Page<Shipments> page,@Param("code")String code,@Param("orderId")Integer orderId,
                                 @Param("courierName")String courierName,@Param("address")String address);

}
